package org.apache.dolphinscheduler.api.service;

import org.apache.dolphinscheduler.api.utils.Result;
import org.apache.dolphinscheduler.dao.entity.Model;
import org.apache.dolphinscheduler.dao.entity.User;
import org.apache.dolphinscheduler.spi.enums.ResourceType;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

public interface ModelService {
    Map<String, Object> insertModel(Model model);

    Map<String,Object> viewModel(int userId);

    Map<String,Object> deleteModelById(int userId);

    String getHdfsFilename(int id);

    Map<String,Object> uploadModel(User loginUser,String alias, String description, MultipartFile file, ResourceType type);

    Result queryModelListPaging(int userId,int pageSize,int currentPage,String searchVal);

    Result<Object> verifyModelName(String alias, ResourceType type,User loginUser);
}
